package zhongbo.java.air.dictionary.service;

import org.springframework.data.domain.Page;
import zhongbo.java.air.common.vo.PageVo;
import zhongbo.java.air.dictionary.model.AirAirport;
import zhongbo.java.air.dictionary.model.AirAlertZone;

/**
 * 机场信息表(AirAirport)表服务接口
 *
 * @author makejava
 * @since 2025-03-31 14:05:43
 */
public interface AirAirportService<A> {

    /**
     * 通过ID查询单条数据
     *
     * @param entityId 主键
     * @return 实例对象
     */
//    AirAirport queryById(String id) throws Exception;
    AirAirport findOne(String entityId) throws Exception;


    PageVo<AirAirport> findPage(int page, int pageSize, String keyword, String fields, String oderByField, boolean orderByAsc);

    /**
     * 新增数据
     *
     * @param entity 实例对象
     * @return 实例对象
     */
//    AirAirport insert(AirAirport airAirport) throws Exception;
    AirAirport add(AirAirport entity) throws Exception;

    /**
     * 修改数据
     *
     * @param edit 实例对象
     * @return 实例对象
     */
//    AirAirport update(AirAirport airAirport) throws Exception;
    AirAirport edit(AirAirport edit) throws Exception;

    /**
     * 通过主键删除数据
     *
     * @param entityId 主键
     * @return 是否成功
     */
//    boolean deleteById(String id) throws Exception;
    boolean delete(String entityId) throws Exception;

}
